@csrf
<div class="layui-form-item">
    <label for="name" class="layui-form-label">比赛名称</label>
    <div class="layui-input-block">
        <input type="text" id="name" name="name" lay-filter="name" class="layui-input"
            value="{{$Match->name??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="type" class="layui-form-label">比赛等级</label>
    <div class="layui-input-block">
        <select name="level" required lay-verify="required">
            <option value="">请选择比赛等级</option>
            @foreach ($ProjectLeavels as $ProjectLeavel)
            <option value="{{$ProjectLeavel['id']}}"
                @if($Match->level == $ProjectLeavel['id']) selected @endif
            >{{$ProjectLeavel['title']}}</option>
            @endforeach
        </select>
    </div>
</div>
<div class="layui-form-item">
    <label for="status" class="layui-form-label"></label>
    <div class="layui-input-block">
        <input type="hidden" name="status" value="0">
        <input type="checkbox" name="status" lay-skin="primary" value="1" {{$Match->status=='1'?'checked':''}}
            title="有效">
    </div>
</div>
<div class="layui-form-item">
    <label for="sort_code" class="layui-form-label">排序</label>
    <div class="layui-input-block">
        <input type="text" name="sort_code" class="layui-input" value="{{$Match->sort_code??''}}">
    </div>
</div>
<div class="layui-form-item">
    <label for="description" class="layui-form-label">备注</label>
    <div class="layui-input-block">
        <textarea type="text" name="description" class="layui-textarea">{{$Match->description??''}}</textarea>
    </div>
</div>